<template>
  <el-dialog style="width: 35%" title="编辑秒杀商品信息" :model-value="show">
    <el-form style="margin: 10px 30px">
      <el-form-item label="商品名称："> </el-form-item>
      <el-form-item label="货号："> </el-form-item>
      <el-form-item label="商品价格："> </el-form-item>
      <el-form-item label="秒杀价格：">
        <el-input
          ><template #prepend> <el-button>￥</el-button> </template></el-input
        ></el-form-item
      >
      <el-form-item label="剩余数量："> </el-form-item>
      <el-form-item label="限购数量："> <el-input></el-input> </el-form-item>
      <el-form-item label="排序：">
        <el-input></el-input>
      </el-form-item>
    </el-form>
  </el-dialog>
</template>

<script setup lang="ts">
import { reactive, ref, watch } from "vue";

const props = defineProps({
  show: {
    type: Boolean,
    default: false,
  },
  shuju: {
    type: Object,
    default: {},
  },
});
const editList = ref({});
watch(
  () => props.shuju,
  () => {
    editList.value = props.shuju;
  }
);
console.log(props);
console.log(editList.value);
</script>

<style></style>
